<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 4.3.2 or newer
 *
 * @package		CodeIgniter
 * @author		Valli
 * @copyright	Copyright (c) 2009, EllisLab, Inc.
 * @license		http://codeigniter.com/user_guide/license.html
 * @link		http://codeigniter.com
 * @since		Version 1.0
 * @filesource
 */

// ------------------------------------------------------------------------

/**
 * CodeIgniter Array Helpers
 *
 * @package		CodeIgniter
 * @subpackage	Helpers
 * @category	Helpers
 * @author		ExpressionEngine Dev Team
 * @link		http://codeigniter.com/user_guide/helpers/array_helper.html
 */

// ------------------------------------------------------------------------


if ( ! function_exists('jumpto'))
{
function jumpto($table)
	{
		foreach($table as $item)
		{
		$CI =& get_instance();
		$CI->db->where('parentid',0);
		$query=$CI->db->get($item);
		$jumpto[]  = $query;
		}
		return $jumpto;
			
	}
}

if( !function_exists('trim_name'))
{
	function trim_name($name,$limit)
	{
		$trim_name = substr($name,0,$limit);
		if(strlen($name) > $limit)
		{
			$trim_name .= '..';
		}
		return $trim_name;
		
	}
}
//if( !function_exists('meta_names'))
//{
//	function meta_names($inputarray,$tags)
//	{
//	 if(!empty($inputarray))
//	 {
//		foreach($inputarray as $item)
//		{
//			foreach($tags as $item1)
//			$item .= $item1; 
//		}
//	 }
//		
//	}
//}
